php sessions

173

getting input value in session variable in php -

$qty = isset($_GET['qty']) ? $_GET['qty'] : 1;
$_SESSION['qty'] = $qty;

php session variables -

<?php
   session_start();
   $_SESSION['var'];
?>

$session php -

<form action="login.php" method="post">
Dein Name: <br />
<input type="Text" name="name" />
<input type="Submit" />
</form>

Comments

Submit
0 Comments